<#assign  title="我的咨询" /><#include 'member_header.html' />
<!-- 获得会员咨询列表标签 -->
<#assign memberAskListTag = newTag("memberAskListTag")>
<!-- 调用会员咨询列表标签 -->
<#assign memberAskList = memberAskListTag()>
<div class="data">
	<h2>我的咨询</h2>
</div>	
<!--温馨提示-->
<div class="tip">
	<div class="top"></div>
	<div class="body">
		<@image src="${ctx}/themes/default/images/gth.jpg" />
		<div>
			<h2>温馨提示</h2>
			<p>1、这里将显示您的咨询信息</p>
			<p>2、您还可以查看您的咨询信息以及管理员的回复等</p>
		</div>
	</div>
	<div class="bottom"></div>
</div>
<!--温馨提示结束-->
<div class="tab">
	<ul >
		<li class="selected"><a href="ask.html"><span>我的咨询</span></a></li>
	</ul>
</div>
<div class="box" >
	<div class="top"></div>
	<div class="body">
		<#if memberAskList?size gt 0 >
		<table id="tblComm" width="100%" cellspacing="0" cellpadding="0">
			<tr>
				<th class="title">咨询商品</th>
				<th class="date">提交时间</th>
				<th class="status">状态</th>
			</tr>
			<#list memberAskList.commentsList as comment>
			<tr>
				<td class="title"><span><a href="${ctx}/goods-${comment.goods_id}.html#discuss_wrapper" target="_blank">${comment.name}</a></span></td>
				<td class="date"><@dateformat time="${comment.dateline?c}" pattern="yy-MM-dd HH:mm"/></td>
				<td>
					<span> 
						<#if comment.status == 1> 
							<span class="status-used">审核通过</span> 
						<#elseif comment.status == 2> 
							<span class="status-expired">审核拒绝</span> 
						<#else> 
							<span class="status-virgin">待审核</span> 
						</#if>
					</span>
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<div class="myComm">
						<h2 class="questHead">您的咨询：</h2>
						<div class="questContent">
							<p style="margin-top: -2px;">${comment.content}</p>
						</div>
						<#if comment.replystatus == 1>
						<div style="width: 700px; float: left;">
							<h2 class="questHead">回复：</h2>
							<div class="answerContent">
								<p style="margin-top: -2px;">${comment.reply}</p>
							</div>
						</div>
						</#if>
					</div>
				</td>
			</tr>
			</#list>
		</table>
		<div class="pager_border">
			<@pager pageno="${memberAskList.page}" pagesize="${memberAskList.pageSize}" totalcount="${memberAskList.totalCount}" />
			<div class="clear"></div>
		</div>
		<#else>
			<div class="empty" >您还没有任何咨询</div>
		</#if>	
	</div>
	<div class="bottom"></div>
	</div>
</div>
<div class="rr_bottom"></div></div>
		<!--会员中心首页右侧结束-->
	</div>
	</div>
		<#include '../common/footer.html'/>